0 vic=53248:poke2040,11:poke2041,13:poke2042,14:poke2043,15:forx=704to767:reada:pokex,a:next:forx=832to1021:reada:pokex,a:next:print"mystic castle v1.20 by paul panks"
145 iflo(n)<>-1andlo(n)<>rmthenprint"[217]ou don't see that here.":goto40
146 ifn=41thenprint"[212]he sign reads:'[215]elcome to [197]ldor.'":goto40
147 ifn=45thenprint"[212]he words are beyond your knowledge":print"or skill.":goto40
148 print"[201]t wasn't too interesting after all...":goto40
149 rem light
150 iflo(n)<>-1andlo(n)<>405thenprint"[217]ou must be carrying the":printob$(n)"to light it.":goto40
151 ifn=23thenlt=1:print"[212]he torch is now lit.":lo(23)=405:goto40
152 print"[212]he "ob$(n)" is not":print"a flammable substance.":goto40
153 rem extinguish
154 iflo(n)<>405thenprint"[212]he "ob$(n)" is not here":print"or is not lit.":goto40
155 lo(n)=-1:print"[217]ou exintuish the "ob$(n)".":lt=0:goto40
156 rem climb
157 ifwd$(2)="tree"thenifrm<>13thenprint"[217]ou can't see a way.":goto40
158 ifwd$(2)="tree"thenifrm=13thenrm=36:print"[217]ou slowly ascend the tree...":gosub197:goto35
159 print"[217]ou can't see a way to climb it.":goto40
160 rem use
161 iflo(n)<>-1andlo(n)<>405thenprint"[217]ou must be carrying that to use!":goto40
162 ifn=21thenifrm=34thenprint"[207]n lock[146]":print"[212]he cell lock breaks!":gosub197:print"[212]he old man is now free!":gosub197:forx=67to76step2:printde$(x):printde$(x+1):te=1:goto298
163 ifn=22theniflo(13)=-1andlt=0thenlt=1:print"[212]he lantern is now lit.":goto40
164 ifn=22theniflo(13)<>-1thenprint"[217]ou need the lantern first.":goto40
165 ifn=13andlo(22)=-1andlt=0thenlt=1:print"[212]he lantern is now aglow.":lo(13)=405:goto40
166 ifn=13andlt=1thenprint"[212]he lantern is already aglow.":lo(13)=405:goto40
167 print"[217]ou can't see a use for "ob$(n)".":goto40
185 sc=sc+n:ee=ee+n+i+h:forx=7to45:iflo(x)=1000+nthenprint"[217]ou found "ob$(x):print"on it!":lo(x)=rm:sc=sc+10
186 next:ge=ge+i+mh:print"[217]ou gained"ee"experience points":print"and"ge"gold coins.":gp=gp+ge:ep=ep+ee:ifee>100thenlv=lv+1:print"[217]ou gained a level!":hp=hp+25:h=hp
187 gosub197:print"[147]":goto35
188 ifhp<h then hp=h
189 print"[217]ou have"ep"xp pts,"gp"gold coins,":printh"hit points (of"hp").":print"[217]ou are "pn$" the "kn$"[146]!":print"[217]our alignment puts you in the category of "al$"."
207 print"[147][204]et's [210]eview[146]":print:print"[217]our name is: "na$"[146]":print"[217]ou are known as "na$"[146] the "kn$"[146]":print"[217]our alignment is: ";:ifal$="l"thenprint"[204]awful[146]"
210 print:print"[146][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]";:print"[206]ote[146]: [215]hen you restart a saved game, some of your possessions will be gone. [212]his makes it more";
211 print" challenging. [194]esides,you can always find them again later.":gosub197:print"[211]hall we begin? (y/n):";:ifal$="l"thenal$="[204]awful"
294 ifrm=36thenprint"[217]ou are on a branch high atop the forest. [198]rom here you can see a castle to the southwest and a meadow by a pond past a hillside."
295 ifrm=36thengosub193:iflo(35)=rmthenprint"[217]ou see a troll here, apparently meditating. [208]erhaps it would be wise not to disturb him.":gosub193
296 ifrm=36andlo(35)=rmtheniflo(35)=-1orlo(35)=205thenprint"[212]roll [199]omar notices your presence.":print"[200]e looks up and says:":print:print"'[212]hat ring was once mine.'":print
300 print"[147][212]hanks for playing![146]":goto11000
301 rem room data
302 data"[217]ou are standing in a dark forest. [212]he sky above is obscured by the canopy of leaves and foliage from the trees. [193] path breaks off south of here.
303 [131]"(NULL)ou also notice one particular tree (with low-lying branches) by the side ofthe main path."
304 [131]"(NULL)ou are standing inside a large house, possibly dating from the (NULL)ictorian era. (NULL)he main hall is decorated with ela- borate paintings."
305 [131]"(NULL)ou also notice a fireplace with a wooden mantle above it. (NULL)esting on the mantle are several books."
306 [131]"(NULL)ou are in the library of the house. atn large grand piano is set against the back wall. (NULL)ou notice some sheet music above the piano keys."
307 [131]"(NULL)o the west of the library stands a statue of a knight (holding tightly to a lance)."
308 [131]"(NULL)ou are standing in a dimly lit hallway inside the house. (NULL)he walls are faintly aglow by soft candle light. atn few candles flicker in the darkness.
309 data"[217]ou notice a doorway ahead, heading intothe [205]aster bedroom."
310 data"[217]ou are inside the [205]aster bedroom of thehouse. [193] large [209]ueen sized bed is visible in the center of the room.":data"[193] plush carpet is also here."
311 data"[217]ou are standing inside the [205]aster bath. [193] basin is here where you can washyour face (or do whatever else it is you came here to do)."
312 data"[212]here is a closet here as well. [211]everal rows of clothing can be seen just insidethe front doorway."
313 data"[217]ou are standing in a rather spacious closet. [210]ows of clothing adorn either side of the doorway. [217]ou notice a few items of interest here as well."
314 data"[207]n one rack you notice a fine suit and tie."
315 data"[217]ou are standing in the [205]ain kitchen of the house. [193] wooden table lies in the center, with some items resting atop it."
316 data"[217]ou notice a large sack atop the table."
317 data"[217]ou are standing in front of a large house. [201]t is aged and worn with time, possibly as old as the [214]ictorian era!"
318 data"[193] path leads into the house from the north. [212]he trail heads off west of here towards a large meadow."
319 data"[217]ou are standing in a grassy meadow eastof a large house. [217]ou see a few flowers blooming in small patches alongside the grass."
320 data"[193] small pond lies to the north of here, obscured by lumbering [207]ak trees."
321 data"[217]ou stand before a small pond near a grassy meadow. [212]he water is relatively dark and murky, with moss visible on rocks nearby."
322 data"[212]he path heads south from here past a large, rolling meadow."
323 data"[217]ou are walking along a well-travelled path near a forest, the treetops of which rise several feet above."
324 data"[212]he ground is covered mostly with old leaves, although up ahead you notice a small clearing (away from the forest)."
325 data"[217]ou are standing in a damp and dark forest. [212]he ground is quite wet from a recent storm. [204]eaves and mud are mixed together upon the ground."
326 data"[212]he forest continues east into a thick wood."
327 data"[217]ou are standing in a thick wood. [212]he trees are mostly bare, but it isn't immediately obvious why. [211]ome are black-ened with ash and soot."
328 data"[212]he woods become less dense to the west,while a small village is visible up ahead to the north."
329 data"[217]ou are walking on a well-travelled pathnear town. [193] large forest stands to the south, while a meadow is visible far to the southwest."
330 data"[212]he road into town heads north."
331 data"[217]ou are standing near the entrance to a village. [211]moke billows from chimneys as clouds drift on by. [193] tavern is vis- ible to the north of here."
332 data"[217]ou also notice a well near the center of town."
333 data"[217]ou are standing before a well. [193] bucketis here where you can obtain water from below. [212]he sides of the well are green with moss."
334 data"[212]he water rises from the depths of the well bottom by some 50 feet."
335 data"[217]ou are standing on the main path through town. [193] well is visible directlynorth of here, while a tavern is much further down the road."
336 data"[193] church lies to the west, its spire cutting across the clouds with a sharp- ness reserved for knives."
337 data"[217]ou are standing inside a large cath- edral. [210]ows of pews adorn the massive interior of this church. [212]here are stained glass windows here,too."
338 data"[213]p near the front stands a large altar. [210]ows of items adorn the base, with a large crucifix hanging down from above (near the ceiling)."
339 data"[217]ou stand before an altar in the cath- edral. [213]pon it rests several items, manyof which may serve some useful purpose."
340 data"[212]he main walkway of the church is directly south."
341 data"[217]ou are standing in the back room of the cathedral. [211]everal items are stackedneatly against the back wall."
342 data"[212]he only exit is back west."
343 data"[217]ou are standing in a large tavern. [212]here is a bar up ahead to the north, while a staircase leads upwards to the second floor of the tavern."
344 data"[211]everal tables and chairs are also here (some of them occupied)."
345 data"[217]ou are standing before the bar inside the tavern. [193] stout fellow named [194]arnas greets you with a smile."
346 data"[212]he only exit is back south."
347 data"[217]ou are standing before a long and wind-ing staircase inside the tavern. [212]he staircase ascends to the second floor of this tavern."
348 data"[212]here is a hallway up above which leads into several rooms."
349 data"[217]ou are standing on the second floor of the tavern. [212]he hallway heads west here past several rooms."
350 data"[207]n the other side of the hallway is a large [207]ak door."
351 data"[217]ou stand before an [207]ak door at the end of the hallway. [201]t appears to be locked at the moment. [200]owever, if you could just locate the key..."
352 data"[212]he only exit is back east."
353 data"[193]t last you open the door! [212]he room is mostly bare, save for a small bed and dresser drawer."
354 data"[193]top the dresser you notice a large mirror."
355 data"[217]ou are standing inside a small shop in town. [193] clerk is here, attending to a few local patrons. [217]ou notice rows of shelves here as well."
356 data"[211]ome of them contain useful items, but you'll have to pay for them first! [212]ype list[146] to see what's sold here."
357 data"[217]ou stand before a large, hulking castleat the end of the forest. [201]t is shroudedin myst, but nevertheless rises hundredsof feet into the air."
358 data"[212]he ramparts of the castle rise above, with dark red flags flapping gently in the breeze."
359 data"[217]ou are inside the main hallway of [205]ystic castle. [201]t is a true relic from the [196]ark [193]ges, when men could only dreamof the technologies of today.
360 [131]"(NULL)he hallway of the castle heads past several columns (some of them decorated with banners and griffons)."
361 [131]"(NULL)ou are before a throne in the throne room of this castle. right$t is plated in gold and encrusted with precious jewels.atn scepter is also here."
362 [131]"(NULL)o the west of the throne room stands a hallway, heading into darkness below."
363 [131]"(NULL)ou are walking in a darkened hallway (just west of the throne room). lenandles flicker softly on either side, casting dark shadows."
364 [131]"(NULL)p ahead to the north lies a single cell, apparently occupied."
365 [131]"(NULL)ou are standing before a lone cell within the dungeon. atnn old man is here, eating gingerly from a bowl. left$e appears frail and aged, and in poor"
366 [131]"shape. left$e looks up at you briefly, and then continues eating his soup."
367 [131]"(NULL)he old man looks up at you. 'right$ was oncestrong and fit, just like you.' he says with a faint heart."
368 [131]"'peekut age and time has taken that away from me, like chaff from wheat.'"
369 [131]"(NULL)ou say to the old man, '(NULL)hy are you here? (NULL)ho put you inside this cell?'"
370 [131]"(NULL)he old man replies, '(NULL)y name is valric. right$ was once (NULL)ing of this very castle. peekut one day my best knight turned against me, casting me here.'
371 data"[217]ou attempt to open the cell, but the door doesn't budge. [212]he old man nods to you, saying, '[201] appreciate the effortbut that door is locked.'"
372 data"[217]ou'll need to find a way to open the door and free him, otherwise he'll be doomed to remain here...possibly to the end of his days!"
373 data"[193]t last you open the cell door! [212]he old man smiles gently. '[212]hank you, my brave friend. [200]owever can [201] thank you for doing this brave deed?'"
374 data"[194]ut you reply simply, '[201] have done no better than anyone else.' [212]he old man nods, and then says to you, '[215]hy don't you help me out of here?'"
375 data"[217]ou help the old man to his feet. [211]tep by step, you lead him out of the dungeonand into the light of the throne room. [200]e is very grateful."
376 data"'[212]hank you, my brave friend,' he says to you. '[201] will forever be endebted to you. [215]hat is mine is now yours. [201] will take comfort in this truth.'"
377 rem response data
378 data "[212]ell me a direction to go in first.","[217]ou already have the "
379 data "[198]urther travel north is block by fallen trees.
380 [131] "right$ do not understand you.","(NULL)ou are not carrying the "
381 [131] "(NULL)ou see nothing special.","right$t is too dark to see."
382 [131] "(NULL)ou cannot go that way.","(NULL)ou do not have the ","(NULL)othing happens."
383 [131] "right$ do not see the ","(NULL)ou cannot pickup a direction!"
384 [131] "(NULL)ou cannot pick up ","(NULL)ou can't eat something that you don't have!"